package com.lesson6.builder.improve;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/8/28 21:08
 */
public class Client
{
    public static void main(String[] args)
    {
        CommonHouse commonHouse = new CommonHouse();
        SmallHouse smallHouse = new SmallHouse();
        HouseDirector houseDirector = new HouseDirector(smallHouse);
//        houseDirector.setHouseBuilder(smallHouse);
        houseDirector.constructHouse();
        System.out.println("输出流程");
        HighBuilding highBuilding = new HighBuilding();
        houseDirector.setHouseBuilder(highBuilding);
        houseDirector.constructHouse();
    }
}
